const materialConfig = []
const bedConfig = []

for (const productionOrder of productionOrderList) {
    const currBedData = bedData[productionOrder.styleCode]
    if (currBedData == null) {
        continue
    }

    bedConfig.push(...getData(currBedData.bedConfig, productionOrder['数据ID']))
    materialConfig.push(...getData(currBedData.materialConfig, productionOrder['数据ID']))
}

function getData(dataList, productionOrderId) {
    for (const data of dataList) {
        data.productionOrderId = productionOrderId
    }
    return dataList
}

return {
    materialConfig: materialConfig,
    bedConfig: bedConfig
}